<script type="text/javascript" >
<{include file='user/user/js/index.js'}>
</script>
<style type="text/css">
    #iTitle div {
        display: inline-block;
        float: left;
        padding: 0 0 0 10px;
        margin-bottom: 12px;
    }

    .mySelect {
        height: 22px;
        border: 1px solid #CCCCCC;
    }

    #iTitle input {
        height: 20px;
        border: 1px solid #CCCCCC;
    }

    .myTable td {
        padding: 3px 0px;
    }

    div.errormsg, .pderrormsg {
        color: red;
        float: right;
        padding-left: 3px;
        width: 120px;
        text-align: left;
    }

    .validateTips {
        background-color: #FFFECD;
        border: 1px solid #CCCCCC;
        color: #FF0000;
        display: none;
        line-height: 26px;
        min-height: 26px;
        margin-bottom: 5px;
        text-align: center;
        height: auto;
        overflow: hidden;
    }

    .validateTips span {
        float: left;
        clear: both;
        line-height: 24px;
        width: 100%;
    }
</style>

<div class="search_div">
    <div id="iTitle">

        <form id="seach-form" onsubmit="return false;" action="/user/user/search/" method="post" name="seach-form">
            <div class="tDiv2" style="padding-left:30px"><{$lang.department}>：</div>
            <div class="tDiv3">
                <select id="department" name="department" class="mySelect">
                    <option value=""><{$lang.pls}></option>
                    <option value="1">总经办</option>
                    <option value="2">---<{$lang.product}>部</option>
                    <option value="28">---QA部</option>
                    <option value="29">---IT部</option>
                    <option value="30">---<{$lang.product}>内容部</option>
                </select>
            </div>
            <div class="tDiv4" style="padding-left:10px"><{$lang.status}>：</div>
            <div class="tDiv5">
                <select id="search_status" class="mySelect" name="search_status">
                    <option value=""><{$lang.all}></option>
                    <option value="0">不<{$lang.useable}></option>
                    <option value="1"><{$lang.useable}></option>
                </select>
            </div>
            <div class="tDiv6"><{$lang.user}>名：</div>
            <div class="tDiv7">
                <input id="loginId" class="myInput ui-autocomplete-input" onkeyup="if(event.keyCode==13){search();}" type="text" onfocus="sc_focus();" value=""
                       name="loginId" role="textbox"/>
            </div>
            <div class="tDiv8">
                <input id="searchSubmit" class="myButton" type="button" onclick="search();" value="<{$lang.search}>">
            </div>
            <div class="tDiv1" permission="adduser">
                <input class="myButton" type="button" value="<{$lang.add}>" onclick="editUser('')">
            </div>
            <div class="myClear"></div>
        </form>

    </div>
</div>

<div id="message" style="clear:both;color:red;"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTab">
    <thead>
    <tr>
    	<th><{$lang.No}></th>
        <th>Login Id</th>
        <th><{$lang.username}></th>
        <th><{$lang.department}></th>
        <th><{$lang.position}></th>
        <th><{$lang.last_login}></th>
        <th><{$lang.status}></th>
        <th><{$lang.auth}></th>
        <th><{$lang.operation}></th>
    </tr>
    </thead>
    <tbody id="list">

    </tbody>
</table>

<div class="pagination"></div>

<div id="add" style="display:none;overflow:hidden" title="<{$lang.user}><{$lang.msg}>">
    <div class="validateTips" id="tips"></div>
    <form id="createForm" name='createForm'>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTable">
            <tbody id="addlist">
            <tr>
                <td width="30%" align="right">Login Id：</td>
                <td width="69%">
                    <input type="hidden" name="user_id" id="user_id"/>
                    <input id="login_id" name="login_id" value=""/>
                    <div class="errormsg">*</div>
                </td>
                <!-- <{$lang.login}>名 -->
            </tr>
            <tr>
                <td align="right"><{$lang.username}>：</td>
                <td width="60%"><input id="name" name="name" value=""/>
                    <div class="errormsg">*</div>
                </td>
            </tr>
            <tr>
                <td align="right"><{$lang.english_name}>：</td>
                <td width="60%"><input id="name_en" name="name_en" value=""/></td>
            </tr>
            <tr>
                <td align="right"><{$lang.email}>：</td>
                <td width="60%"><input id="email" name="email" value=""/>
                    <div class="errormsg"></div>
                </td>
            </tr>
            <tr>
                <td align="right"><{$lang.telphone}>号码：</td>
                <td><input id="telephone" name="telephone" value=""/></td>
            </tr>
            <tr>
                <td align="right">手机号码：</td>
                <td>
                    <input id="mobile_phone" name="mobile_phone" value=""/></td>
            </tr>
            <tr>
                <td align="right"><{$lang.status}>：</td>
                <td width="60%">
                    <select id="status" name="status" class="uselect">
                        <option value="1"><{$lang.useable}></option>
                        <option value="0">不<{$lang.useable}></option>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="right"><{$lang.department}>：</td>
                <td>
                    <select id="ud_id" name="ud_id" class="uselect">
                        <{section name="loop" loop=$department}>
                        <option value="<{$department[loop].ud_id}>"><{$department[loop].ud_name}></option>
                        <{/section}>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="right"><{$lang.position}>：</td>
                <td>
                    <select id="up_id" name="up_id" class="uselect">
                        <{section name="loop" loop=$position}>
                        <option value="<{$position[loop].up_id}>"><{$position[loop].up_name}></option>
                        <{/section}>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="right"><{$lang.password}>：</td>
                <td width="60%">
                    <input type="password" id="passwd" class="text ui-widget-content" name="passwd" value=""
                           disabled="disabled" style="background:none repeat scroll 0 0 #CCCCCC"/>

                    <input type="checkbox" onclick="setPwd(this);" name="check_flg" id="check_flg" value="0">重设
                </td>
            </tr>
            <tr>
                <td align="right"><{$lang.confirm}><{$lang.password}>：</td>
                <td width="60%">
                    <input type="password" id="pwd_sec" class="text ui-widget-content" name="pwd_sec" value=""
                           disabled="disabled" style="background:none repeat scroll 0 0 #CCCCCC"/>
                    <div class="pderrormsg"></div>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>